<template>
  <div class="footer">
    <van-tabbar v-model="router">
      <van-tabbar-item replace to="/layout/home" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/layout/classfiy" icon="apps-o"
        >分类</van-tabbar-item
      >
      <van-tabbar-item replace to="/layout/Shoppingcar" icon="user-o"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item replace to="/layout/my" icon="user-o"
        >我的</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      router: 0,
    };
  },
};
</script>

<style scoped>
.footer {
  width: 100%;
  height: 50px;
  display: flex;
  flex-direction: column;
}
</style>
